package com.hyzx.qbasic.admin.domain.dao;

import com.hyzx.qbasic.admin.model.po.CmsChannelInfoPO;
import com.hyzx.qbasic.admin.model.po.CmsChannelPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by 黄江华 on 2018/7/24
 */

public interface CmsChannelMapper {
    List<CmsChannelPO> getAllCmsChannelList();

    List<CmsChannelInfoPO> getPagedCmsChannelList(@Param("channelName") String channelName, @Param("channelId") Integer channelId);

    int addCmsChannel(CmsChannelPO channel);

    int deleteCmsChannel(List<Integer> channelIdList);

    int deleteChannelContents(List<Integer> channelIdList);

    CmsChannelPO getCmsChannelInfo(@Param("channelId") int channelId);

    int editCmsChannel(CmsChannelPO channel);
}
